import request from '@/utils/request'

export function selectPage(params) {
  return request({
    url: '/monitor/monitorProtective/selectAllPage',
    method: 'post',
    data: params
  })
}

export function getCreators() {
  return request({
    url: '/monitor/monitorProtective/getCreators',
    method: 'get'
  })
}

export function getById(id) {
  return request({
    url: '/monitor/monitorProtective/getById',
    method: 'get',
    params: { id }
  })
}

export function update(params) {
  return request({
    url: '/monitor/monitorProtective/update',
    method: 'post',
    data: params
  })
}

export function deleteById(id) {
  return request({
    url: '/monitor/monitorProtective/delete',
    method: 'get',
    params: { id }
  })
}

export function add(params) {
  return request({
    url: '/monitor/monitorProtective/add',
    method: 'post',
    data: params
  })
}






